/*
'===============================================================================
'  .AspnetUsersEntity
'===============================================================================
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DaoHelper.Religion.Entity.Helper
{
	public class AspnetUsersField
	{
		public static Field ApplicationId { get { return new Field("ApplicationId", 0); } }
		public static Field UserId { get { return new Field("UserId", 0); } }
		public static Field UserName { get { return new Field("UserName", 256); } }
		public static Field LoweredUserName { get { return new Field("LoweredUserName", 256); } }
		public static Field MobileAlias { get { return new Field("MobileAlias", 16); } }
		public static Field IsAnonymous { get { return new Field("IsAnonymous", 0); } }
		public static Field LastActivityDate { get { return new Field("LastActivityDate", 0); } }
		
	}
}

namespace DaoHelper.Religion.Entity
{
	public class AspnetUsersEntity
	{
		/// <summary>
		/// Class AspnetUsers is generation
		/// </summary>
		
		public AspnetUsersEntity()
		{
			// Nothing for now.
		}
		
		private const string TableName = "aspnet_Users";
		
		
		private const string _ApplicationIdProperty = "@Name:ApplicationId@DataType:uniqueidentifier@IsKey:False@Length:0";
		private bool _ApplicationIdIsDirty = false;
        private Guid _ApplicationIdValue;
        public Guid ApplicationId
        {
            get { return _ApplicationIdValue; }
            set
            {
                _ApplicationIdValue = value;
                _ApplicationIdIsDirty = true;
            }
        }
		
		private const string _UserIdProperty = "@Name:UserId@DataType:uniqueidentifier@IsKey:True@Length:0";
		private bool _UserIdIsDirty = false;
        private Guid _UserIdValue;
        public Guid UserId
        {
            get { return _UserIdValue; }
            set
            {
                _UserIdValue = value;
                _UserIdIsDirty = true;
            }
        }
		
		private const string _UserNameProperty = "@Name:UserName@DataType:nvarchar(256)@IsKey:False@Length:256";
		private bool _UserNameIsDirty = false;
        private string _UserNameValue;
        public string UserName
        {
            get { return _UserNameValue; }
            set
            {
                _UserNameValue = value;
                _UserNameIsDirty = true;
            }
        }
		
		private const string _LoweredUserNameProperty = "@Name:LoweredUserName@DataType:nvarchar(256)@IsKey:False@Length:256";
		private bool _LoweredUserNameIsDirty = false;
        private string _LoweredUserNameValue;
        public string LoweredUserName
        {
            get { return _LoweredUserNameValue; }
            set
            {
                _LoweredUserNameValue = value;
                _LoweredUserNameIsDirty = true;
            }
        }
		
		private const string _MobileAliasProperty = "@Name:MobileAlias@DataType:nvarchar(16)@IsKey:False@Length:16";
		private bool _MobileAliasIsDirty = false;
        private string _MobileAliasValue;
        public string MobileAlias
        {
            get { return _MobileAliasValue; }
            set
            {
                _MobileAliasValue = value;
                _MobileAliasIsDirty = true;
            }
        }
		
		private const string _IsAnonymousProperty = "@Name:IsAnonymous@DataType:bit@IsKey:False@Length:0";
		private bool _IsAnonymousIsDirty = false;
        private bool _IsAnonymousValue;
        public bool IsAnonymous
        {
            get { return _IsAnonymousValue; }
            set
            {
                _IsAnonymousValue = value;
                _IsAnonymousIsDirty = true;
            }
        }
		
		private const string _LastActivityDateProperty = "@Name:LastActivityDate@DataType:datetime@IsKey:False@Length:0";
		private bool _LastActivityDateIsDirty = false;
        private DateTime _LastActivityDateValue;
        public DateTime LastActivityDate
        {
            get { return _LastActivityDateValue; }
            set
            {
                _LastActivityDateValue = value;
                _LastActivityDateIsDirty = true;
            }
        }
		
		
		public void ResetDirty()
        {
			_ApplicationIdIsDirty = false;
			_UserIdIsDirty = false;
			_UserNameIsDirty = false;
			_LoweredUserNameIsDirty = false;
			_MobileAliasIsDirty = false;
			_IsAnonymousIsDirty = false;
			_LastActivityDateIsDirty = false;
		
		}
	}
}
